package com.cmccgz.udacs_landlord_webapp.main.unlock;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.UnlockRecord;

import java.util.List;

/**
 * Created by June on 2017-6-19.
 */

public interface UnlockRecordContract {

    interface Presenter extends BasePresenter {
        void loadRecord(String q_word, String device_id,String start_date,String end_date, int page);
    }

    interface View extends BaseView<Presenter> {
        void showLoading();
        void refreshSuccess(List<UnlockRecord> data);
        void refreshFail(String errorMsg);
        void loadmoreSuccess(List<UnlockRecord> data);
        void loadmoreFail(String errorMsg);
    }
}
